home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 216_02 / undos.1 < prev    next >
Text File  |  1980-01-01  |  2KB  |  111 lines

  1. '\" Last Delta     01-26-86
  2. .TH UNDOS 1 OMEN
  3. .SH NAME
  4. undos,tounix,todos,tocpm,tomac,unmac,unparity \- Change
  5. ASCII file format for target operating system
  6. .SH SYNOPSIS
  7. .B undos
  8. [
  9. .B -s
  10. ]
  11. file ...
  12. .br
  13. .B tounix
  14. [
  15. .B -s
  16. ]
  17. file ...
  18. .br
  19. .B todos
  20. [
  21. .B -s
  22. ]
  23. file ...
  24. .br
  25. .B tocpm
  26. [
  27. .B -s
  28. ]
  29. file ...
  30. .br
  31. .B unmac
  32. [
  33. .B -s
  34. ]
  35. file ...
  36. .br
  37. .B tomac
  38. [
  39. .B -s
  40. ]
  41. file ...
  42. .br
  43. .B unparity
  44. file ...
  45. .SH DESCRIPTION
  46. .B Undos
  47. and
  48. .B tounix
  49. convert DOS or CP/M format source files to Unix format by deleting
  50. carriage returns preceding linefeeds and eliminating characters
  51. starting with CPMEOF (^Z).
  52. .PP
  53. .B Todos
  54. converts Unix format source files to DOS format by adding a carriage return
  55. (if not already present) before each linefeed,
  56. and eliminates characters
  57. starting with CPMEOF (^Z).
  58. .B Tocpm
  59. additionally appends CPMEOF (^Z) characters to the resulting file
  60. to make the file length a multiple of the 128 byte CP/M record length.
  61.  
  62. Any combination of
  63. .B undos, todos,
  64. or
  65. .B tocpm
  66. (without flags)
  67. may be applied to a proper ASCII
  68. file without destroying information.
  69. Lone carriage returns used to force overprinting are not translated
  70. to CR/LF pairs.
  71.  
  72. .B Unmac
  73. converts files with lines terminated only by carriage return
  74. to Unix format.
  75. .B Unmac
  76. should only be used to translate files whose lines are terminated
  77. by lone carriage returns.
  78.  
  79. .B Tomac
  80. converts Unix format files to Macintosh format
  81. (lines terminated by carriage return only).
  82.  
  83. The optional flag
  84. .B -s
  85. Strips the parity bit on all characters
  86. and discards all resulting characters with values less than 7.
  87.  
  88. .B Unparity
  89. merely strips the parity bit from the files.
  90.  
  91. The access and modification times of the modified files are set
  92. to those of the original files.
  93. .SH DIAGNOSTICS
  94. Refuses to translate files in which "binary" characters (less than 7
  95. or greater than 127) are seen before CPMEOF.
  96. Refuses to translate files
  97. with ultra long lines.
  98. Refuses to translate special files.
  99. .SH NOTES
  100. Should be executed with the current directory in the same filesystem
  101. as the target files for minimum disk i/o.
  102. .SH BUGS
  103. Does not detect short files without linefeeds.
  104. .B Unmac
  105. and
  106. .B tomac
  107. cannot handle files with CR-only overprinting.
  108. (ASCII allows either LF or CR/LF to delimit lines, but not CR.)
  109. .SH SEE ALSO
  110. lar(1), yam(1), sq(1), usq(1), rb(omen), sb(omen)
  111.